<template>
  <div>
    <h1>注册组件</h1>
     <h1>{{$store.state.num}}</h1>
     <h1>{{$store.getters.douNum}}</h1>
     <button @click="plusten">actions触发加10</button>
  </div>
</template>
<script>
export default {
  methods: {
    plusten(){
      // 触发vuex的actions的方法
      this.$store.dispatch("numActions",10)
    }
  },
  created() {
    console.log(9999)
    // process.env.NODE_ENV 当前开发环境
    console.log(process.env.NODE_ENV=="development")
    console.log(process.env.NODE_ENV=="production")
  },
  //  beforeRouteEnter (to, from, next) {
  //    // ...
  //  },
  //  beforeRouteLeave (to, from, next) {
  //    // ...
  //  },
  //  beforeRouteUpdate(){}
}
</script>
<style lang="less">
  
</style>